<tasks>
	{foreach from=$tasks item=task}
	<task id="{$task.id}" name="{$task.name}" desc="{$task.desc}" pid="{$task.pid}" dateago="{$task.dateago}">
		<users>
			{foreach from=$task.users item=user}
			<user id="{$user.id}" name="{$user.name}" />
			{/foreach}
		</users>
	</task>
	{/foreach}
</tasks>